package com.yzh.wanandroid.utils.binding

import androidx.databinding.BindingAdapter
import com.youth.banner.Banner
import com.youth.banner.adapter.BannerAdapter

@BindingAdapter("bannerAdapter")
fun setAdapter(banerView: Banner<*, *>, adapter: BannerAdapter<*, *>?) {
    adapter?.let { banerView.adapter = it }
}